package com.tax.plan.utils;

import java.util.Map;
import java.util.Set;

/**
 * Map 数据源
 *
 * @Author: TG
 * @Description: About this class
 * @Date :Created in 10:12 2021/5/24 0024
 * @Version : 1.0
 */
public class MapPdfReplaceDataStore implements PdfReplaceDataStore {
    private Map<String, String> dataStore;

    public MapPdfReplaceDataStore(Map<String, String> dataStore) {
        this.dataStore = dataStore;
    }

    @Override
    public Set<String> keys() {
        return dataStore.keySet();
    }

    @Override
    public String getValue(String key) {
        return dataStore.get(key);
    }
}
